//@ts-ignore
import Login from 'bundle-loader?lazy&name=[name]!../components/login/Login';
//@ts-ignore
import NotFound from 'bundle-loader?lazy&name=[name]!../components/notFound';
//@ts-ignore
import Home from 'bundle-loader?lazy&name=[name]!../components/home/Home';
//@ts-ignore
import Help from 'bundle-loader?lazy&name=[name]!../components/help';
//@ts-ignore
import HomeInfo from 'bundle-loader?lazy&name=[name]!../components/home/content/info/HomeInfo';
//@ts-ignore
import PersonalInfo from 'bundle-loader?lazy&name=[name]!../components/home/content/info//PersonalInfo';
//@ts-ignore
import Users from 'bundle-loader?lazy&name=[name]!../components/home/content/users/Users';
//@ts-ignore
import Company from 'bundle-loader?lazy&name=[name]!../components/home/content/users/Company';
//@ts-ignore
import Roles from 'bundle-loader?lazy&name=[name]!../components/home/content/roles/Roles';
//@ts-ignore
import AuthObject from 'bundle-loader?lazy&name=[name]!../components/home/content/auth/AuthObject';
//@ts-ignore
import ChangePwd from 'bundle-loader?lazy&name=[name]!../components/home/content/changePwd/ChangePwd';

import LazyLoad from './LazyLoad';

const Routes = [
  {
    exact: true,
    path: '/notFound',
    component: LazyLoad(NotFound)
  },
  {
    exact: true,
    path: '/login',
    component: LazyLoad(Login)
  },
  {
    exact: false,
    path: '/home',
    component: LazyLoad(Home)
  },
  {
    exact: false,
    path: '/help',
    component: LazyLoad(Help)
  }
];

const HomeRoutes = [
  {
    exact: true,
    path: '/home/',
    component: LazyLoad(HomeInfo)
  },
  {
    exact: true,
    path: '/home/personalInfo',
    component: LazyLoad(PersonalInfo)
  },
  {
    exact: true,
    path: '/home/users',
    component: LazyLoad(Users)
  },
  {
    exact: true,
    path: '/home/company',
    component: LazyLoad(Company)
  },
  {
    exact: true,
    path: '/home/roles',
    component: LazyLoad(Roles)
  },
  {
    exact: true,
    path: '/home/authObjects',
    component: LazyLoad(AuthObject)
  },
  {
    exact: true,
    path: '/home/changePwd',
    component: LazyLoad(ChangePwd)
  },
];

export { Routes, HomeRoutes }